Skip to content

refactor(main): adopt electron-menubar v10 for window/tray/system handling#2880

Merged
afonsojramos merged 10 commits into
mainfrom
adopt-gitify-menubar
Jun 5, 2026
Merged

refactor(main): adopt electron-menubar v10 for window/tray/system handling#2880
afonsojramos merged 10 commits into
mainfrom
adopt-gitify-menubar

Conversation

@afonsojramos
Copy link
Copy Markdown
Member

@afonsojramos afonsojramos commented May 11, 2026

Summary

  • Swap the upstream menubar dependency for our hard forked electron-menubar (v10) and lean on its built-in features.
  • Delegate window lifecycle (hideOnClose, escapeToHide, recenterOnTray), tray context-menu wiring/SNI refresh, and the global keyboard shortcut to the menubar instance.
  • Drop the now-redundant local glue in lifecycle/window.ts, handlers/tray.ts, and handlers/system.ts, simplifying tests accordingly.

@github-actions github-actions Bot added dependency Dependency updates refactor Refactoring of existing feature labels May 11, 2026
@setchy
Copy link
Copy Markdown
Member

setchy commented May 11, 2026

These comments are more for @gitify/menubar

@setchy
Copy link
Copy Markdown
Member

setchy commented May 11, 2026

What do you think about a more universal package name such as electron-menubar vs @gitify/menubar.

We could also contribute a Renovate replacement rule which would help all the other consumers of max-mapper/menubar migration from the unmaintained v9 to v10

@afonsojramos
Copy link
Copy Markdown
Member Author

electron-menubar is actually already taken :/

@setchy
Copy link
Copy Markdown
Member

setchy commented May 29, 2026

Oh really, I had searched npmjs before but couldn't see any conflicts

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Jun 5, 2026

@setchy setchy changed the title refactor(main): adopt @gitify/menubar v10 for window/tray/system handling refactor(main): adopt electron-menubar v10 for window/tray/system handling Jun 5, 2026
@afonsojramos afonsojramos merged commit d003a61 into main Jun 5, 2026
21 checks passed
@afonsojramos afonsojramos deleted the adopt-gitify-menubar branch June 5, 2026 22:18
@github-actions github-actions Bot added this to the Release 7.0.0 milestone Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependency Dependency updates refactor Refactoring of existing feature

Development

Successfully merging this pull request may close these issues.

2 participants